<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Perfil_model extends CI_Model {
	 public function __construct()
    {
    $this->load->library('session');
    $this->load->database();
    }
	
		public function modificar($id, $valor, $campo){
		$update = array($campo=$valor);
		$this->db->where('id', $id);

		if( $this->db->update('tb_usuario', $update) )
			return true;		
		else
			return false;
		
	}
	
	
	
}


?>